home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 2: Applications / Linux Cubed Series 2 - Applications.iso / editors / emacs / xemacs / xemacs-1.004 / xemacs-1 / xemacs-19.13 / man / Makefile.in < prev    next >
Encoding:
Makefile  |  1995-08-02  |  3.8 KB  |  128 lines

  1. # ==================== Things `configure' will edit ====================
  2.  
  3. CC=@CC@
  4. CFLAGS=@CFLAGS@
  5. C_SWITCH_SYSTEM=@c_switch_system@
  6. LOADLIBES=@LD_SWITCH_SITE@ @libsrc_libs@
  7. C_SWITCH_SITE=@C_SWITCH_SITE@
  8. YACC=@YACC@
  9. version=@version@
  10. configuration=@configuration@
  11.  
  12. # ==================== Where To Install Things ====================
  13.  
  14. # The default location for installation.  Everything is placed in
  15. # subdirectories of this directory.  The default values for many of
  16. # the variables below are expressed in terms of this one, so you may
  17. # not need to change them.  This is set with the --prefix option to
  18. # `../configure'.
  19. prefix=@prefix@
  20.  
  21. # Like `prefix', but used for architecture-specific files.  This is
  22. # set with the --exec-prefix option to `../configure'.
  23. exec_prefix=@exec_prefix@
  24.  
  25. # Where to install Emacs and other binaries that people will want to
  26. # run directly (like etags).  This is set with the --bindir option
  27. # to `../configure'.
  28. bindir=@bindir@
  29.  
  30. # Where to install and expect executable files to be run by Emacs
  31. # rather than directly by users, and other architecture-dependent
  32. # data.  ${archlibdir} is usually below this.  This is set with the
  33. # --libdir option to `../configure'.
  34. libdir=@libdir@
  35.  
  36. # Where to find the source code.  This is set by the configure
  37. # script's `--srcdir' option.  However, the value of ${srcdir} in
  38. # this makefile is not identical to what was specified with --srcdir,
  39. # since the variable here has `/lib-src' added at the end.
  40. srcdir=@srcdir@
  41. VPATH=@srcdir@
  42.  
  43. # ============================= Targets ==============================
  44.  
  45. ALL_CFLAGS = ${C_SWITCH_SITE} ${C_SWITCH_SYSTEM} -Demacs -DHAVE_CONFIG_H \
  46.    -DHAVE_STDARG_H -DHAVE_STRING_H -DHAVE_ALLOCA_H -Dxfree=free \
  47.    -I. -I../src -I${srcdir} -I${srcdir}/../src ${CFLAGS}
  48. CPP_CFLAGS = ${C_SWITCH_SITE} ${C_SWITCH_SYSTEM} -Demacs -DHAVE_CONFIG_H \
  49.    -DHAVE_STDARG_H -DHAVE_STRING_H -DHAVE_ALLOCA_H -Dxfree=free \
  50.    -I. -I../src -I${srcdir} -I${srcdir}/../src ${CPPFLAGS} ${CFLAGS}
  51. OBJS = makeinfo.o getopt.o getopt1.o alloca.o
  52.  
  53. # Subdirectories to make recursively.
  54. SUBDIR = xemacs lispref new-users-guide
  55.  
  56. # The makefiles of the directories in $SUBDIR.
  57. SUBDIR_MAKEFILES = xemacs/Makefile lispref/Makefile
  58.  
  59. .c.o:
  60.     ${CC} -c ${CPP_CFLAGS} $<
  61.  
  62. ../info/%.info : %.texi
  63.     -makeinfo $<
  64.  
  65. srcs = ange-ftp cc-mode cl dired ediff evi external-widget forms gnus \
  66.        hyperbole ilisp info ispell mailcrypt mh-e oo-browser pcl-cvs \
  67.        rmail supercite term termcap texinfo viper vm w3 xemacs-faq standards
  68. info = $(srcs:%=../info/%.info)
  69.  
  70. all : ${SUBDIR} $(info)
  71.  
  72. .RECURSIVE: ${SUBDIR}
  73.  
  74. xemacs: FRC.xemacs
  75. lispref: FRC.lispref
  76.  
  77. ${SUBDIR}: ${SUBDIR_MAKEFILES} makeinfo FRC
  78.     cd $@ && $(MAKE) all $(MFLAGS) \
  79.         CC='${CC}' CFLAGS='${CFLAGS}' MAKE='${MAKE}'
  80.  
  81. makeinfo: ../src/config.h $(OBJS)
  82.     $(CC) -o makeinfo $(OBJS)
  83.  
  84. texindex: texindex.o
  85.     $(CC) -o texindex texindex.o
  86.  
  87. alloca.c :
  88.     [ -h alloca.c ] || ln -s ../src/alloca.c .
  89.  
  90. getopt.h :
  91.     [ -h getopt.h ] || ln -s ../lib-src/getopt.h .
  92.  
  93. getopt.c :
  94.     [ -h getopt.c ] || ln -s ../lib-src/getopt.c .
  95.  
  96. getopt1.c :
  97.     [ -h getopt1.c ] || ln -s ../lib-src/getopt1.c .
  98.  
  99. mostlyclean: clean
  100.     (cd xemacs &&    $(MAKE) $(MFLAGS) mostlyclean)
  101.     (cd lispref &&    $(MAKE) $(MFLAGS) mostlyclean)
  102.  
  103. clean:
  104.     rm -f *.dvi
  105.     rm -f getopt1.c getopt.c getopt.h alloca.c makeinfo texindex
  106.     rm -f *.log *.cp *.fn *.ky *.pg *.vr *.o core
  107.  
  108. # These are needed because they are present in the other makefiles.
  109. distclean: mostlyclean
  110.     (cd xemacs &&    $(MAKE) $(MFLAGS) distclean)
  111.     (cd lispref &&    $(MAKE) $(MFLAGS) distclean)
  112.     rm -f Makefile
  113. realclean: distclean
  114.     (cd xemacs &&    $(MAKE) $(MFLAGS) realclean)
  115.     (cd lispref &&    $(MAKE) $(MFLAGS) realclean)
  116. extraclean: distclean
  117.     (cd xemacs &&    $(MAKE) $(MFLAGS) extraclean)
  118.     (cd lispref &&    $(MAKE) $(MFLAGS) extraclean)
  119.     -rm -f *~ \#*
  120.  
  121. makeinfo.o : getopt.h
  122. getopt.o : getopt.h
  123. getopt1.o : getopt.h
  124. texindex.o : getopt.h
  125.  
  126. FRC FRC.xemacs FRC.lispref:
  127.  
  128.